import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';

///加载中widget
class LoadingWidget extends StatelessWidget {
  const LoadingWidget({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Center(
        child: Column(
          mainAxisSize: MainAxisSize.min,
          children: const [
            CupertinoActivityIndicator(
              radius: 15,
              animating: true,
            ),
            SizedBox(height: 8),
            Text("加载中...")
          ],
        ),
      ),
    );
  }
}
